package com.mach.platform.controller;


import com.mach.platform.domain.Response;
import com.mach.platform.service.ExportFileServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

/**
 * 文件导出控制器
 */

@RequestMapping("exportFile")
@RestController
public class ExportFileCtrl {

    @Autowired
    private ExportFileServiceImpl exportFileService;

    /**
     * 导出惠州报表
     * @param time 时间
     * @param classBan 班别
     * @param type 报表类型
     * @return
     */
    @PostMapping("/hzFile")
    public Response hzFile(String time, String classBan, String type, HttpServletResponse response) {
        String result = exportFileService.hzFile(time, classBan, type, response);
        return null;
    }
}
